package com.ruoyi.oa.service;

import com.ruoyi.oa.domain.OaHumanReplace;
import com.ruoyi.oa.domain.vo.OaHumanReplaceVo;
import com.ruoyi.oa.domain.bo.OaHumanReplaceBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.oa.domain.vo.OaProjectVo;
import org.apache.ibatis.annotations.Param;

import java.text.ParseException;
import java.util.Collection;
import java.util.List;

/**
 * 补卡申请Service接口
 *
 * @author ruoyi
 * @date 2023-08-07
 */
public interface IOaHumanReplaceService {

    /**
     * 查询补卡申请
     */
    OaHumanReplaceVo queryById(String id);

    /**
     * 查询补卡申请列表
     */
    TableDataInfo<OaHumanReplaceVo> queryPageList(OaHumanReplaceBo bo, PageQuery pageQuery);

    /**
     * 查询补卡申请列表
     */
    List<OaHumanReplaceVo> queryList(OaHumanReplaceBo bo);

    /**
     * 新增补卡申请
     */
     OaHumanReplaceBo insertByBo(OaHumanReplaceBo bo);


    Integer getUserReplaceByMonth(String month,String userId);

    /**
     * 修改补卡申请
     */
    OaHumanReplace updateByBo(OaHumanReplaceBo bo);


    void replaceInfo(String id) throws ParseException;

    /**
     * 校验并批量删除补卡申请信息
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);

}
